package com.swsc.solarverse.dao.entity.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.swsc.solarverse.dao.entity.base.BaseIntIdDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 环境监测仪实时数据
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-08-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("solar_forward_environmental_monitor_data")
public class ForwardEnvironmentalMonitorDataDO extends BaseIntIdDO {

    /**
     * 租户编号
     */
    @TableField("tenant_no")
    private Integer tenantNo;

    /**
     * 机构编号
     */
    @TableField("organ_no")
    private Integer organNo;

    /**
     * 设备id
     */
    @TableField("device_id")
    private Long deviceId;

    @TableField("device_name")
    private String deviceName;

    /**
     * 风速
     */
    @TableField("wind_speed")
    private Double windSpeed;

    /**
     * 温度
     */
    @TableField("temperature")
    private Double temperature;

    /**
     * 总辐射1
     */
    @TableField("total_radiation_1")
    private Double totalRadiation1;

    /**
     * 总辐射累计1
     */
    @TableField("acc_total_radiation_1")
    private Double accTotalRadiation1;

    /**
     * 总辐射2
     */
    @TableField("total_radiation_2")
    private Double totalRadiation2;

    /**
     * 总累计辐射2
     */
    @TableField("acc_total_radiation_2")
    private Double accTotalRadiation2;

    /**
     * 散射辐射
     */
    @TableField("scattered_radiation")
    private Double scatteredRadiation;

    /**
     * 散射辐射累计
     */
    @TableField("acc_scattered_radiation")
    private Double accScatteredRadiation;

    /**
     * 直接辐射
     */
    @TableField("direct_radiation")
    private Double directRadiation;

    /**
     * 直接辐射累计
     */
    @TableField("acc_direct_radiation")
    private Double accDirectRadiation;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 数据时间
     */
    @TableField("data_time")
    private LocalDateTime dataTime;


    public ForwardEnvironmentalMonitorDataDO(Integer tenantNo, Integer organNo, Long deviceId, String deviceName, LocalDateTime dataTime, LocalDateTime createTime) {
        this.tenantNo = tenantNo;
        this.organNo = organNo;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.createTime = createTime;
        this.dataTime = dataTime;
    }

    public ForwardEnvironmentalMonitorDataDO(){}

}
